from tortoise import Model, fields

class Todo(Model):
    """数据库中的一个表"""
    id = fields.IntField(pk=True) # primary key
    content = fields.CharField(max_length=512)
    created_time = fields.DatetimeField(auto_now_add=True)
    updated_time = fields.DatetimeField(auto_now=True)
